package com.aipp.mall.h5.mapper;

import com.aipp.mall.h5.domain.entity.MemberAddress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 会员收货地址Mapper接口
 *
 * @author zcc
 */
public interface MemberAddressMapper extends BaseMapper<MemberAddress> {
    /**
     * 查询会员收货地址列表
     *
     * @param memberAddress 会员收货地址
     * @return 会员收货地址集合
     */
    List<MemberAddress> selectByEntity(MemberAddress memberAddress);


    void updateDefault(@Param("def") int isDefault, @Param("id") Long id);
}
